<link rel="stylesheet" type="text/css" href="<?=gurl('css');?>/home.css" />
<div class="login">
<? if($account):?>
<a href="/home/profile/<?=$account["account_id"];?>"><?=$account["account_username"];?></a><a href="<?=gurl('accounts/logout');?>">退出</a><a href="<?=gurl('about/contact');?>">建议</a>
<? else:?>
<a href="<?=gurl('accounts/');?>">登录</a><a href="<?=gurl('accounts/');?>">注册</a><a href="<?=gurl('about/contact');?>">建议</a>
<? endif;?>
</div>
<div class="w960">
	<div class="w660">
		<div class="smallCon">
			<h1><a id="top" name="top">&nbsp;</a><?=$userinfo["username"];?>的个人主页</h1>
			<? if($isowner):?>
			<ul class="listEdit">
				<li onmouseover="$(this).addClass('sel');" onmouseout="$(this).removeClass('sel');"><a href="/home/account/<?=$userinfo["id"];?>">个人设置</a></li>
				<li onmouseover="$(this).addClass('sel');" onmouseout="$(this).removeClass('sel');"><a href="/home/profile/<?=$userinfo["id"];?>">我的轻站</a></li>
				<li class="sel"><a href="/home/topic/<?=$userinfo["id"];?>">我的话题</a></li>
				<li onmouseover="$(this).addClass('sel');" onmouseout="$(this).removeClass('sel');"><a href="/home/inbox/<?=$userinfo["id"];?>">我的邮箱</a></li>
				<li onmouseover="$(this).addClass('sel');" onmouseout="$(this).removeClass('sel');"><a href="/home/comment/<?=$userinfo["id"];?>">回应我的</a></li>
			</ul>
			<? else:?>
			<ul class="listEdit">
				<li onmouseover="$(this).addClass('sel');" onmouseout="$(this).removeClass('sel');"><a href="/home/account/<?=$userinfo["id"];?>">个人资料</a></li>
				<li onmouseover="$(this).addClass('sel');" onmouseout="$(this).removeClass('sel');"><a href="/home/profile/<?=$userinfo["id"];?>">他的轻站</a></li>
				<li class="sel"><a href="/home/topic/<?=$userinfo["id"];?>">他的话题</a></li>
			</ul>
			<? endif;?>
			<div class="blank8"></div>
			<? if($lists):?>					
			<ul class="listCommunity">				
				<? foreach($lists as $k => $list):?>
					<li><a href="<?=c('site_url');?><?=$list['domain'];?>/forum/show/<?=$list['id'];?>" class="tit"><?=strip_tags($list['title']);?></a>
						<p class="cCGray"><a href="/home/profile/<?=$list['userinfo']["id"];?>" class="cCGray"><?=$list['userinfo']['username'];?></a> <em class="time"><?=date("Y-m-d H:i",$list['addtime']);?></em> <em>(<?=$list['commentcount'];?>回应)</em> <? if($isowner):?><em style="margin-left:20px"><a href="<?=c('site_url');?><?=$list['domain'];?>/forum/edit/<?=$list['id'];?>" class="cBlue">编辑</a> <a href="#TB_inline?height=120&width=396&inlineId=hiddenModalContent_topic_<?=$k;?>&modal=true" class="cBlue thickbox">删除</a></em><? endif;?></p>
					</li>
					<div id="hiddenModalContent_topic_<?=$k;?>" style=" border:1px solid; padding-top:20px; padding-left:20px; display:none;">
							<div class="floatDiv">
								<div class="cc">
									<p>是否要删除？</p>	
									<div class="inputBox"><input type="button" name="" value="确定" class="airIco" onClick="golink('<?=gurl('/home/deltopic/'.$userinfo['id'].'/'.$list['id']);?>');" /><input type="button" name="" value="取消" class="airIco" onClick="tb_remove();" /></div>
								</div>
							</div>
					</div>
				<? endforeach;?>
			</ul>
			<div class="blank8"></div>
			<div class="allmark">
					<div class="right"><a href="#top" class="goTop cCGray">返回顶部</a></div>
				</div>
				<div class="blank8"></div>
				<div class="page">
                    <?=$pagestring;?>
                </div>
			<div class="hackbox"></div>
			<? endif;?>
		</div>
	</div>
	<script language="javascript" src="/home/right/<?=$userinfo['id'];?>"></script>
	<div class="hackbox"></div>
</div>